import request from '@/utils/request'
import { objectToFormData } from '@/utils/form'
export function findStylePoiList(params) {
  return request({
    url: '/51world/style/poi/findList',
    method: 'get',
    params:params
  })
}

export function getAllPoiStyles(params) {
  return request({
    url: '/51world/style/poi/getAll',
    method: 'get',
    params:params
  })
}

export function saveStylePOI(params) {
  return request({
    url: '/51world/style/poi/save',
    method: 'post',
    data: objectToFormData(params)
  })
}

export function deleteStylePOI(params) {
  return request({
    url: '/51world/style/poi/deleteById',
    method: 'get',
    params:params
  })
}

export function getStylePOIById(params) {
  return request({
    url: '/51world/style/poi/getById',
    method: 'get',
    params:params
  })
}
